This is a short list of the interactive demonstrations we have built to illustrate basic background concepts. These are important for students to understand before they dive into machine learning.
This is based off of Python Jupyter notebooks
Press the botton 'Toggle code' below to toggle code on and off for entire this presentation.
from IPython.display import display
from IPython.display import HTML
import IPython.core.display as di # Example: di.display_html('<h3>%s:</h3>' % str, raw=True)
# This line will hide code by default when the notebook is exported as HTML
di.display_html('<script>jQuery(function() {if (jQuery("body.notebook_app").length == 0) { jQuery(".input_area").toggle(); jQuery(".prompt").toggle();}});</script>', raw=True)
# This line will add a button to toggle visibility of code blocks, for use with the HTML export version
di.display_html('''<button onclick="jQuery('.input_area').toggle(); jQuery('.prompt').toggle();">Toggle code</button>''', raw=True)
# This code cell will not be shown in the HTML version of this notebook
# run this cell to import all necessary libraries for the notebook experiments
import sys
sys.path.append('../../')
from mlrefined_libraries import basics_library as baslib
from mlrefined_libraries import calculus_library as calclib
from mlrefined_libraries import linear_algebra_library as linlib
import autograd.numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
# this is needed to compensate for matplotlib notebook's tendancy to blow up images when plotted inline
%matplotlib notebook
from matplotlib import rcParams
rcParams['figure.autolayout'] = True
From the most basic - e.g., animating sine / cosine.
# create an animation showing the origin of the sine and cosine functions
baslib.trig_hyper_visualizer.sin_cos(num_frames=200)